package com.gwcd.myapplication.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.gwcd.myapplication.R;

/**
 * @author LiuBo
 * @date 2021-12-15
 */
public class SeActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (getIntent().getExtras().getInt("handle") == 0) {
            finish();
            return;
        }
        setContentView(R.layout.activity_se);
    }

    public void onBtnClickCommit(View v) {
        EditText et = findViewById(R.id.et_input);
        String input = et.getEditableText().toString();
        ((TextView)findViewById(R.id.tv_result)).setText(input);
    }
}
